<?php
/**
 * @version		$Id: index.php 21720 2011-07-01 08:31:15Z chdemko $
 * @package		Joomla.Site
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;

/* The following line loads the MooTools JavaScript Library */
JHtml::_('behavior.framework', false);

/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
?>
<?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->_charset ?>"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
    <head>
        <!-- The following JDOC Head tag loads all the header and meta information from your site config and content. -->
        <jdoc:include type="head" />

        <!-- The following five lines load the Blueprint CSS Framework (http://blueprintcss.org). If you don't want to use this framework, delete these lines. -->
        <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/blueprint/print.css" type="text/css" media="print" />
        <!--[if lt IE 8]>
            <link rel="stylesheet" href="blueprint/ie.css" type="text/css" media="screen, projection">
        <![endif]-->
        <!--[if gte IE 5]>
            <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie.css" type="text/css" media="screen, projection">
        <![endif]-->
        <!--
        <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection" />
        <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/blueprint/plugins/joomla-nav/screen.css" type="text/css" media="screen" />
        -->
        <!-- The following line loads the template CSS file located in the template folder. -->
        <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
        
        <!-- Nivo slide show start -->
        <!-- link -->
        <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/nivo/nivo_generral.css" type="text/css" />
        <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/nivo/nivo-style.css" type="text/css" />
        <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/nivo/nivo-slider.css" type="text/css" />
        <!-- script -->
        <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/nivo/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/nivo/jquery.nivo.slider.pack.js"></script>
        <script type="text/javascript">
            $(window).load(function() {
                $('#slider').nivoSlider({
                    effect:'fade',
                    pauseTime:4500
                });                
            });
        </script>
        <!-- Nivo slide show end -->
        <script>
            function change_cat(e,n,i,all){
                for(j=1;j<=all;j++){
                    $("#"+e+"_"+j).hide();
                    $("#"+n+"_"+j).attr("class","nivo-control");
                }
                $("#"+e+"_"+i).fadeIn("fast");
                $("#"+n+"_"+i).attr("class","nivo-control active");
                return true;
            }
        </script>
        <!-- Menu start -->
        <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/menu/menu_style.css" type="text/css" />
        <!--  Menu end  -->

        <!-- The following four lines load the Blueprint CSS Framework and the template CSS file for right-to-left languages. If you don't want to use these, delete these lines. -->
        <?php if ($this->direction == 'rtl') : ?>
            <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/blueprint/plugins/rtl/screen.css" type="text/css" />
            <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_rtl.css" type="text/css" />
        <?php endif; ?>

        <!-- The following line loads the template JavaScript file located in the template folder. It's blank by default. -->
        <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/template.js"></script>
    </head>
    <body>
        <div class="wrap shadow">
            <div class="header">&nbsp;</div>

            <div class="wrap-content">
                <div style="width: 10.1%; float: left;">&nbsp;</div>
                <div class="site-name">
                    <div class="menu">
					<?php include("templates/architecs/menu.php") ?>
                        <!-- <ul>
                            <li ><a href="templates/architecs/service.php" >DỊCH VỤ</a>
								<ul>
                                    <li><a href="templates/architecs/tuvanthietke.php">.Tư vấn thiết kế</a></li>
                                    <li><a href="templates/architecs/xaydungcongtrinh.php">.Xây dựng công trình</a></li>
                                    <li><a href="templates/architecs/baogia.php">.Báo giá</a></li>                                    
                                </ul>
							</li>
                            <li style=""><a href="http://smarch.vn/index.php/du-an">DỰ ÁN</a>
                                <ul>
                                    <li><a href="http://smarch.vn/index.php/du-an/dan-dung">.Dân dụng</a></li>
                                    <li><a href="#">.Công cộng</a></li>
                                    <li><a href="#">.Công nghiệp</a></li>
                                    <li><a href="#">.Quy hoạch</a></li>
                                    <li><a href="#">.Trang trí nộ thất-ngoại thất</a></li>
                                </ul>
                            </li>
                            <li><a href="templates/architecs/info.php">THÔNG TIN</a>
                              <ul>                                    
                                    <li><a href="templates/architecs/thongtinchuyennganh.php">.Thông tin chuyên ngành</a></li>
                                    <li><a href="templates/architecs/phongthuyungdung.php">.Phong thủy ứng dụng</a></li>
                                    <li><a href="templates/architecs/thuvienkientruc.php">.Thư viện kiến trúc</a></li>                                  
                              </ul>
                            </li>
							<li><a href="templates/architecs/intro.php">GIỚI THIỆU</a></li>
                            <li><a href="templates/architecs/contact.php">LIÊN HỆ</a></li>
                        </ul> -->
                        <br />
                        <?php if ($this->countModules('architecs-menu')) : ?>
                            <jdoc:include type="modules" name="architecs-menu" style="" />
                        <?php endif; ?>
                    </div>
                    <div class="logo"> 
                        <?php if ($this->countModules('architecs-logo')) : ?>
                            <jdoc:include type="modules" name="architecs-logo" style="" />
                        <?php endif; ?>
                    </div>
                    
                    <script>                    
                        $("#img").hover(function(){
                            $(this).hide();
                            $(this).fadeIn('fast');
                            $(this).attr("src", "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/sm1.jpg");
                        }, function() {
                          $(this).attr("src", "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/sm.jpg");
                        });
                        $("#img").click(function(){
                          $(this).attr("src", "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/sm.jpg");
                          $(window.location).attr('href', '?logo=1');
                        });
                        $("#img-text").hover(function(){
                            $(this).hide();
                            $(this).fadeIn('fast');
                            $(this).attr("src", "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/architects1.png");
                        }, function() {
                          $(this).attr("src", "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/architects.png");
                        });
                        $("#img-text").click(function(){
                            $(this).attr("src", "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/architects1.png");
                            $(window.location).attr('href', '?img_text=1');
                        });
                        $("#logo-text").hover(function(){
                            $(this).hide();
                            $(this).fadeIn('fast');
                            $(this).attr("src", "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/space_more1.png");
                        }, function() {
                          $(this).attr("src", "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/space_more.png");
                        });
                        $("#logo-text").click(function(){
                            $(this).attr("src", "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/space_more1.png");
                            $(window.location).attr('href', '?logo_text=1');
                        });
                    </script>
                </div>  
                <?php if(isset($_REQUEST['layout'])) { ?>
                <div class="welcome-message">
                    <div class="welcome-message-content">
                        <?php if ($this->countModules('architecs-welcome')) : ?>
                            <jdoc:include type="modules" name="architecs-topquote" style="" />
                        <?php endif; ?>
                        &nbsp;
                    </div>
                </div>
                <?php } ?>
                <div id="abc" class="architecs-content<?php echo isset($_REQUEST['sub'])? "-".$_REQUEST['sub']:"" ?>">               
                        <jdoc:include type="message" />
                        <jdoc:include type="component" />
                        <?php if(!isset($_REQUEST['sub']) && 0) { ?>
                        <!-- Nivo slider start here -->
                        <div class="slider-wrapper theme-default">
                            <div class="ribbon"></div>
                            <div id="slider" class="nivoSlider">
                                <img src="/images/store/Desert-medium.jpg" alt="" />
                                <a href="http://dev7studios.com"><img src="/images/store/Chrysanthemum-medium.jpg" alt="" title="This is an example of a caption" /></a>
                                <img src="/images/store/Hydrangeas-medium.jpg" alt="" />
                                <img src="/images/store/Penguins-medium.jpg" alt="" title="#htmlcaption" />
                            </div>
                            <div id="htmlcaption" class="nivo-html-caption">
                                <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
                            </div>
                        </div>
                        <!--  Nivo slider end here  -->
                        <?php }else if(0){ ?>
                        <div id="architecs_cat_1" class="theme-default">
                            <div class="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h1_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Biệt Thự Vũng Tàu</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h1_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Biệt Thự Long An</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h1_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Biệt Thự Tân Bình</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h1_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Biệt Thự Trà Vinh</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h1_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Nhà Phố Chị Vân</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h1_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Nhà Phố Anh Nam</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h1_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Nhà Phố Anh Hải</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h1_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Văn Phòng Đà Nẵng</div>
                            </div>
                        </div>
                        <div id="architecs_cat_2" style="display:none">
                            <div class="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h2_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Biệt Thự Vũng Tàu</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h2_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Biệt Thự Long An</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h2_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Biệt Thự Tân Bình</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h2_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Biệt Thự Trà Vinh</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h2_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Nhà Phố Chị Vân</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h2_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Nhà Phố Anh Nam</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h2_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Nhà Phố Anh Hải</div>
                            </div>
                            <div class ="architecs-cat">
                                <div class="architecs-cat-sub-img shadow">
                                    <img src="/images/store/h2_small.png" alt=""  />
                                </div>
                                <div class="architecs-cat-sub-text">Văn Phòng Đà Nẵng</div>
                            </div>
                        </div>
                        <div class="theme-default">
                            <div class="nivo-controlNav">
                                <a rel="1" id="nivo_controlNav_1" onclick="return change_cat('architecs_cat','nivo_controlNav',1)" class="nivo-control">1</a>
                                <a rel="2" id="nivo_controlNav_2" onclick="return change_cat('architecs_cat','nivo_controlNav',2)" class="nivo-control">2</a>
                            </div>
                        </div>
                        <?php } ?>
                </div>                    
            </div>
			<?php if(isset($_REQUEST['layout'])) { ?>
			<script>
		$("#abc").attr("style", "float: left; height: 71.4%; margin: 4.2em auto 0; padding-left: 11.1%; width: 50.5%;");
			$("#slider").attr("style", " height: 396px;");
			</script>
			<?php } ?>
            <div class="footer">
                <div class="footer-al">
				<div class="footer-al" > ©2009, SMARCH.ARCHITECTS. Allright Reseved </div>
                    <!-- &copy;<?php echo date('Y'); ?> <?php echo $app->getCfg('sitename'); ?>  -->
                </div>
            </div>
        </div>
    </body>
</html>
